class calcu:
    def add(self, a, b):
        c = a + b
        print(c)


class vip(calcu):
    def add(self, a, b):
        c = a * b
        print(c)

    def sub(self, a, b):
        c = a - b
        print(c)

class test:
    def __init__(self):
        print('kaishi')
    def d1(self):
        self.name = 'lk'
        print(self.name)

    def d2(self):
        print(self.name)

    def __del__(self):
        print('jiesu')

# import time
# a = test()
# a.d1()
# a.d2()
# time.sleep(4)
# a.d2()
# b = test()

class tools:
    count = 0
    def __init__(self,name):
        self.name = name
        tools.count+=1
        print(f'工具是{self.name}')

a = tools('剪刀')
b = tools('锤子')
print(tools.count)

